﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="LessonLearning.aspx.cs" Inherits="ChineseSchool.Web.LessonLearning" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <asp:Panel ID="pnlSubmit" Visible="false" runat="server">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3>Nộp bài</h3>
                    </div>
                    <div class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <asp:Label ID="lblLesson" Text="Bài học:" CssClass="col-sm-3 control-label" runat="server" />
                                <div class="col-sm-9">
                                    <asp:DropDownList ID="ddlLessons" CssClass="form-control" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:Label ID="lblUpload" Text="Chọn file upload:" CssClass="col-sm-3 control-label" runat="server" />
                                <div class="col-sm-9">
                                    <asp:FileUpload ID="uploadfile" runat="server" />
                                </div>
                            </div>

                        </div>
                        <div class="box-footer">
                            <asp:Button ID="btnSubmit" runat="server" Text="Tải lên" CssClass="btn btn-default" OnClick="BtnSubmitClicked" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlStatistic" Visible="true" runat="server">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>Stt</th>
                    <th>Tên bài học</th>
                    <th>Bài đã nộp</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptStatistic" OnItemCommand="RptStatisticItemCommand" OnItemDataBound="RptStatisticItemDataBound" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 50px"><%# Container.ItemIndex + 1 %></td>
                            <td style="width: 65%"><%# DataBinder.Eval(Container.DataItem, "LessonTitle") %></td>
                            <td>
                                <asp:Label ID="lblFileAttach" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "FileAttach") %>' /></td>
                            <td>
                                <asp:Button ID="btnSend" Text="Nộp bài" CssClass="btn btn-default" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "DoworkId") %>' runat="server" /></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </asp:Panel>
</asp:Content>
